import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
const router = new Router({
  routes: [{
      path: '*',
      redirect: '/index/100201'
    },
    {
      path: '/index',
      component: () => import('@/views/index.vue'),
      children: [{
        path: ':id',
        component: resolve => require(['@/views/doc.vue'], resolve),
      }]
    },
    // {
    //   path: '/text',
    //   component: () => import('@/views/text.vue')
    // },
    // {
    //   path: '/text1',
    //   component: () => import('@/views/text1.vue')
    // },
    // {
    //   path: '/test3',
    //   component: () => import('@/views/test3.vue')
    // },
    // ...Icp
  ],
  linkActiveClass: 'active',
  linkExactActiveClass: 'active-exact'
})


export default router